package cn.hl.hm.service.impl;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hl.hm.dao.TBackstageOperationRecordEntityMapper;
import cn.hl.hm.dao.TBackstageUserEntityMapper;
import cn.hl.hm.entity.backstage.TBackstageUserBean;
import cn.hl.hm.entity.backstage.TBackstageUserEntity;
import cn.hl.hm.service.BackstageOperationRecordService;
import cn.hl.hm.service.TBackstageUserService;


/**
 * 大和
 */
@Service
public class TBackstageUserServiceImpl implements TBackstageUserService {
    private static final Logger logger = LoggerFactory
            .getLogger(TBackstageUserServiceImpl.class);

    @Autowired
    TBackstageUserEntityMapper  tBackstageUserEntityMapper;
    @Autowired
   	private BackstageOperationRecordService backstageOperationRecordService;
    @Autowired
   	private TBackstageOperationRecordEntityMapper tBackstageOperationRecordEntityMapper;


	@Override
	public TBackstageUserBean backstageSignIn(String mailbox, String passWord) {
		TBackstageUserBean user=new TBackstageUserBean();
		TBackstageUserEntity tbue=tBackstageUserEntityMapper.selectSign(passWord, mailbox);
		if(tbue==null){
			return null;
		}
		user.settBackstageUserEntity(tbue);
		return user;
	}

}
